package com.celesea.auth.position.v1.controller.request;

import com.celesea.framework.vo.DictionaryVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-29 22:06
 */

@ApiModel(value = "岗位新增")
public class ConfigRequest {

    @NotNull
    @ApiModelProperty(value = "主键")
    private String id;

    @Length(min = 1, max = 20)
    @ApiModelProperty(value = "名称", required = true)
    private String name;

    @Length(min = 3, max = 20)
    @ApiModelProperty(value = "编码")
    private String code;

    @NotNull
    @ApiModelProperty(value = "是否继承到下级:[0：否，1：是]", allowableValues = "0,1", required = true)
    private Byte extend;

    @ApiModelProperty(value = "岗位成员")
    private List<UserPositionRequest> users;

    @ApiModelProperty(value = "当前操作部门")
    private DictionaryVo currentDept;

    public Byte getExtend() {
        return extend;
    }

    public void setExtend(Byte extend) {
        this.extend = extend;
    }

    public List<UserPositionRequest> getUsers() {
        return users;
    }

    public void setUsers(List<UserPositionRequest> users) {
        this.users = users;
    }

    public DictionaryVo getCurrentDept() {
        return currentDept;
    }

    public void setCurrentDept(DictionaryVo currentDept) {
        this.currentDept = currentDept;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
